package com.canto.wanna.user.pojo.entity;

import com.canto.common.pojo.entity.BaseEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 用户角色
 *
 * @Author jsryin
 * @Date 2021/7/17 10:22
 */
public class Role extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @Length(min = 0, max = 50, message = "name长度必须介于0到50之间")
    private String name;

    /**
     * 描述
     */
    @Length(min = 0, max = 500, message = "description长度必须介于0到500之间")
    private String description;

    /**
     * 用户数量
     */
    private Integer userCount;

    /**
     * 状态 0：禁用，1：启用
     */
    @Length(min = 0, max = 1, message = "flag长度必须介于0到1之间")
    private String status;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}
